<table>
	<tr>
    	<td><strong><h1>Promotion ID: <? echo $PromoID;?></h1></strong></td>
        <td align="right">
        	<? if(!empty($dataList)){ ?>
        	<strong>
            <a target="blank" class="printOrder" href="<?php echo base_url()?>promotion/printFmat/<? echo $PromoID;?>">สั่งพิมพ์</a>
            </strong>
            <? } ?>
     	</td>
    </tr>
</table>
	<div class=" pagination">
        <ul class="pagination">
            <?
            echo $pagination->create_links();
            ?>
        </ul>    
    </div>

<table class="table table-striped table-bordered table-condensed"> <!-- cellspacing='0' is important, must stay -->

	<!-- Table Header -->
	<thead>
		<tr>
			<th style="width:15%">รหัสสินค้า</th>
			<th style="width:30%">รายละเอียดสินค้า</th>
		</tr>
	</thead>
	<!-- Table Header -->
	
	<!-- Table Body -->
	<tbody>
<?
	if(!empty($dataList)){
	?>
		<?
		foreach($dataList as $in=>$val){
			
		?>
			<tr>
				<td><?php echo $val->MATNR?></td>
				<td><?php echo $val->MAKTX?></td>
				
			</tr>
		<?
		}
		?>
<?
	}else{
	?>
		<tr>
			<td colspan="2"><h2>ไม่พบข้อมูล</h2></td>
		</tr>
	<?
	}
	?>
	
	</tbody>
	
	<!-- Table Body -->

</table>
	<div class=" pagination">
        <ul class="pagination">
            <?
            echo $pagination->create_links();
            ?>
        </ul>    
    </div>
    